package asava.utils;

import asava.sources.Source;

/**
 * @author Tim Richter
 */
public final class Position {
    /** source of this position */
    public final Source source;
    /** line of this position */
    public final int line;
    /** column of this position */
    public final int column;
    /** start of the token source */
    public final int start;
    /** end of the token source */
    public final int end;

    public Position(final Source source,
                    final int line,
                    final int column,
                    final int start,
                    final int end) {
        this.source = source;
        this.line = line;
        this.column = column;
        this.start = start;
        this.end = end;
    }
}
